package com.wsd.domain;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Scope("prototype")
@Component
public class LoanLimit {
    private Long id;

    private Long customerId;

    private BigDecimal maxLimit;

    private BigDecimal availableLimit;

    private BigDecimal usedLimit;

    private LocalDateTime gmtCreate;

    private LocalDateTime gmtModilfied;

    private String limitStatus;

    private String isDelete;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getCustomerId() {
        return customerId;
    }

    public void setCustomerId(Long customerId) {
        this.customerId = customerId;
    }

    public BigDecimal getMaxLimit() {
        return maxLimit;
    }

    public void setMaxLimit(BigDecimal maxLimit) {
        this.maxLimit = maxLimit;
    }

    public BigDecimal getAvailableLimit() {
        return availableLimit;
    }

    public void setAvailableLimit(BigDecimal availableLimit) {
        this.availableLimit = availableLimit;
    }

    public BigDecimal getUsedLimit() {
        return usedLimit;
    }

    public void setUsedLimit(BigDecimal usedLimit) {
        this.usedLimit = usedLimit;
    }

    public LocalDateTime getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(LocalDateTime gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public LocalDateTime getGmtModilfied() {
        return gmtModilfied;
    }

    public void setGmtModilfied(LocalDateTime gmtModilfied) {
        this.gmtModilfied = gmtModilfied;
    }

    public String getLimitStatus() {
        return limitStatus;
    }

    public void setLimitStatus(String limitStatus) {
        this.limitStatus = limitStatus == null ? null : limitStatus.trim();
    }

    public String getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(String isDelete) {
        this.isDelete = isDelete == null ? null : isDelete.trim();
    }

    @Override
    public String toString() {
        return "LoanLimit{" +
                "id=" + id +
                ", customerId=" + customerId +
                ", maxLimit=" + maxLimit +
                ", availableLimit=" + availableLimit +
                ", usedLimit=" + usedLimit +
                ", gmtCreate=" + gmtCreate +
                ", gmtModilfied=" + gmtModilfied +
                ", isDelete='" + isDelete + '\'' +
                '}';
    }
}